package com.iwhalecloud.citybrain.flow.platform.manager.domain.model;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author lilh
 * @date 2019-01-22 16:33
 */
public class FlowBusiAddVo {

    /**
     * 业务名称
     */
    @NotNull(groups = {ValidatedAdd.class, ValidatedUpdate.class}, message = "业务名称不能为空")
    @NotBlank(groups = {ValidatedAdd.class, ValidatedUpdate.class}, message = "业务名称不能为空")
    private String busiName;

    /**
     * 应用id
     */
    @NotNull(groups = {ValidatedAdd.class})
    private Integer appId;

    private String description;

    public String getBusiName() {
        return busiName;
    }

    public void setBusiName(String busiName) {
        this.busiName = busiName;
    }

    public Integer getAppId() {
        return appId;
    }

    public void setAppId(Integer appId) {
        this.appId = appId;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public interface ValidatedAdd {
    }

    public interface ValidatedUpdate {
    }
}
